﻿@model IEnumerable<BTKERP.Model.Outlet>

@{
    ViewBag.Title = "Outlet";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section AdditionalJS
{
    <script type="text/javascript">
//        $(document).ready(function () {
//            var trs = $("#dt tr");
//            trs.each(function () {
//                $(this).bind("mouseover", function () {
//                    $(this).css("backgroundColor", "yellow");
//                }).bind("mouseout", function () {
//                    $(this).css("backgroundColor", "white");
//                });
//            });
//        });

    </script>
}
<h2>Outlet</h2>

 <input type="button" value="Create New" class="btn btn-green"/>
<table id="dt" class="display stylized">
    <tr>
        <th>
            Name
        </th>
        <th>
            Description
        </th>
        <th>
            POS Location
        </th>
        <th>
            Address1
        </th>
        <th>
            Address2
        </th>
        <th>
            Address3
        </th>
        <th>
            Fax
        </th>
        <th>
            Tel
        </th>
        <th>
            PostCode
        </th>
        <th>
            Country
        </th>
        <th>
            City
        </th>
        <th>
            Manager
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
         <td>
            @Html.DisplayFor(modelItem => item.POSLocationCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Fax)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tel)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PostCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CountryName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CityName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Manager)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
